struct fragment
{
	float4 position  : POSITION;
	float4 color0    : COLOR0;
	float2 texcoord0 : TEXCOORD0;
};

struct pixel
{
	float4 color : COLOR;
};

pixel main( fragment IN,
		    const uniform sampler2D texture,
			const uniform float1 time)
{
	pixel OUT;

	float multiply = 5+sin(time*30)*0.5;
	float2 newtexcoord = IN.texcoord0*multiply;
	float4 texelcolor = tex2D(texture, newtexcoord);
//	float4 scalecolor = float4(IN.color0.r, IN.color0.g, IN.color0.b,1);

	OUT.color = texelcolor * IN.color0;
	return OUT;

	
	
	
}
